const express = require('express');
const app = express();

app.get('/yangyang',(req,res)=>{
    console.log(req.url);
    res.end('yangyang');
})
app.post('/zhezhe',(req,res)=>{
    console.log(req.url);
    res.end('post1哲哲');
})
app.post('/zhuangzhuang',(req,res)=>{
    console.log(req.url);
    res.end('post2');
})
app.listen(3000,err=>{
    if(!err) console.log('服务器启动成功');
    else console.log(err);
})